# The PyHNode plugin

from zope.interface import implements

from twisted.python import usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker

from pyhsrv.service import PyHSrvServiceMaker

class Options(usage.Options):
    optParameters = [["config", "c", "/etc/pyhmon/server.conf"]]

class ServiceMaker(object):
    implements(IServiceMaker, IPlugin)

    tapname = "pyhsrv"
    description = "PyHMon hierarchical monitoring tool - server"
    options = Options

    def makeService(self, options):
        return PyHSrvServiceMaker(options["config"])

serviceMaker = ServiceMaker()

